import request from '@/request'

type searchPrams = {
  pageSize: number,
  pageNum: number
}
/**
 * 获取推荐泪列表
 * @param searchParams 搜索参数
 * @returns
 */
export const getRecommendList = (searchParams: searchPrams) => {
  return request({
    url: '/user/recommend',
    method: 'get',
    params: {
      pageNum: searchParams.pageNum,
      pageSize: searchParams.pageSize
    }
  })
}

export const getMatchList = (num: number) => {
  return request({
    url: '/user/match',
    method: 'get',
    params: {
      num: num,
    }
  })
}

